<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<HTML>
	<HEAD>
		<TITLE>Untitled Page</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<SCRIPT language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></SCRIPT>
		<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
		<link href="../css/public.css" rel="stylesheet" style="text/css">
	</HEAD>
	<BODY style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(../images/background.gif); BACKGROUND-REPEAT: repeat-x">
    <SCRIPT type=text/javascript>
		var theForm = document.forms['aspnetForm'];
		if (!theForm) {
		    theForm = document.aspnetForm;
		}
		function __doPostBack(eventTarget, eventArgument) {
		    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
		        theForm.__EVENTTARGET.value = eventTarget;
		        theForm.__EVENTARGUMENT.value = eventArgument;
		        theForm.submit();
		    }
		}
		function baojia(feedPprice,inquiryListId){		  
			var p=document.getElementById(feedPprice).value;
			if(isNaN(p)){
			  alert("请输入正确的价格");
			}
			else{
			var remark=document.getElementById("remark").value;			
			var backDate=document.getElementById("backDate").value;
			location.href="inquiry_quotedPrice.action?backDate="+backDate+"&feedPprice="+p+"&remarks="+remark+"&inquiryListId="+inquiryListId;
			}
		}
		function turnpage(){
		 var curPage=document.getElementById("text").value;
		 if(isNaN(curPage)){
		 window.location.href="inquiry_searchNewInquiry.action?pb.pageon="+1;		 
		 }
		 else{
		 window.location.href="inquiry_searchNewInquiry.action?pb.pageon="+curPage;
		 }
		 
		}
</SCRIPT>
<SCRIPT src="EmployeeMgr.files/WebResource.axd" type=text/javascript>
</SCRIPT>
<SCRIPT src="EmployeeMgr.files/ScriptResource.axd" type=text/javascript>
</SCRIPT>
<SCRIPT src="/EmployeeMgr.files/ScriptResource(1).axd" type=text/javascript>
</SCRIPT>
	<div id="layer4">
	  <s:form name="askform" method="post" action="inquiry_feedback.action">
	    <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR
						style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x"
						height=47>
              <TD width=15 height="47"><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"> </SPAN> </TD>
              <TD width="1280"><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl2.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"> </SPAN> <SPAN
								style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0 px: "> <a href="ask_add.jsp">添加询价单</a> </SPAN><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hr.gif); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></SPAN> </TD>
              <TD
							style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(../images/main_rc.gif)"
							width=1></TD>
            </TR>
            <TR>
              <TD style="BACKGROUND-IMAGE: url(../images/main_ls.gif)">&nbsp;</TD>
              <TD
							style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white"
							vAlign=top align="left"><DIV class="STYLE1">
                  <p class="STYLE2">询价单主要信息</p>
                <table width="100%" border="0">
                    <tr>
                   
                      <td width="11%">询价单编号：</td>
                      <td width="27%"><s:property value="inquiry.sn"/></td>
                      <td width="11%">询价人：</td>
                      <td width="10%" align="left"><s:property value="inquiry.user.name"/></td>
                      <td width="13%">询价日期：</td>
                      <td width="28%">
                        <s:date name="inquiry.inquirytime" format="yyyy-MM-dd"/>
                      </td>
                    </tr>
                    <tr>
                      <td>报价人：</td>
                      <td><s:property value="#session.userinfo.name"/></td>
                      <td>报价日期：</td>
                      <td>
						<label>
							<input type="text" id="backDate" value="<s:property value="backDate"/>"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
						</label>
					</td>
                    </tr>
                    <tr>
                      <td height="37">备注：</td>
         
                      <td><textarea id="remark" name="inquiry.remarks" cols="40" rows="2" ><s:property value="inquiry.remark"/></textarea></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td><label></label></td>
                    </tr>
                </table>
                <br>
                询价单详细信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="保存"/><br/>
                                         <TABLE class=gridView1 id=ctl00_ContentPlaceHolder2_GridView1
									style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0
									rules=all border=1 >
                                           <TBODY>
                                             <TR>
                                               <TH width="49" class=gridViewHeader style="WIDTH: 50px" scope=col>&nbsp; </TH>
                                               <TH width="174" class=gridViewHeader scope=col>商品编号</TH>
                                               <TH width="174" class=gridViewHeader scope=col>商品名称</TH>
                                               <TH width="168" class=gridViewHeader scope=col>规格型号</TH>
                                               <TH width="144" class=gridViewHeader scope=col>生产厂家</TH>
                                               <TH width="61" class=gridViewHeader scope=col>单位</TH>
                                               <TH width="67" class=gridViewHeader scope=col>数量</TH>
                                               <TH width="107" class=gridViewHeader scope=col>参考价（元）</TH>
                                               <TH width="111" class=gridViewHeader scope=col>报价（元）</TH>
                                               <TH width="163" class=gridViewHeader scope=col>操作</TH>                                        
                                             </TR>
                                             <s:iterator value="inquiry.inquirylists">
                                             
                                             	<TR>
                                               <TD class=gridViewItem style="WIDTH: 50px"><IMG src="EmployeeMgr.files/bg_users.gif"> </TD>
                                               <TD class=gridViewItem><s:property value="commodity.sn"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.name"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.specifications"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.factory"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.company"/></TD>
                                               <TD class=gridViewItem><s:property value="number"/></TD>
                                               <TD class=gridViewItem><s:property value="commodity.supplyprice"/></TD>                               
                                               	 <TD class=gridViewItem><label>
                                                 <input id="price<s:property value='id'/>" type="text" class="textbox" size="10" value="<s:property value='supplyprice'/>">
                                               </label></TD>
                                               <TD class=gridViewItem> 
                                                 <input type="button" value="报价" onclick="baojia('price<s:property value='id'/>','<s:property value='id'/>');"/>                  
                                             </TR>                                         
                                              
                                             </s:iterator><!--
                                             <tr>
                                               <td colspan="12" align="right" class=gridViewHeader> 总共有${pb.totalitem}条记录 每页${pb.pagesize}条记录 当前为第${pb.pageon}页/总共有${pb.totalpage}页 
                                               <a href="inquiry_searchNewInquiry.action?pb.pageon=1">第一页</a> <a href="inquiry_searchNewInquiry.action?pb.pageon=${pb.prep}">上一页</a> <a href="inquiry_searchNewInquiry.action?pb.pageon=${pb.nextp}">下一页</a> <a href="inquiry_searchNewInquiry.action?pb.pageon=${pb.totalpage}">最后一页</a> 转到第页
                                                 <input name="assa" type="button" class=textbox onClick="javascript:turnpage()" value="Go"/>                                               </td>
                                             </tr>
                                           --></TBODY>
                                         </TABLE>
              </DIV></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_rs.gif)"></TD>
            </TR>
            <TR
						style="BACKGROUND-IMAGE: url(../images/main_fs.gif); BACKGROUND-REPEAT: repeat-x"
						height=10>
              <TD style="BACKGROUND-IMAGE: url(../images/main_lf.gif)"></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_fs.gif)"></TD>
              <TD style="BACKGROUND-IMAGE: url(../images/main_rf.gif)"></TD>
            </TR>
          </TBODY>
        </TABLE>
      </s:form>
    </DIV>					  				
	<body>&nbsp;</BODY>
</HTML>
